package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.UserCredit;

import java.util.List;

public interface IUserCreditService {


    void save(UserCredit usercredit);

    void delete(Long id);

    List<UserCredit> selectAll();

    void update(UserCredit usercredit);

    UserCredit get(Long id);

    UserCredit getCreditsByUserId(Long userId);

    /**
     * 商品积分结算
     * @param userId
     * @param price
     */
    void decreaseCreditByUserId(Long userId, int price);
}
